<?php
	class Persona extends Zend_Db_Table_Abstract
	{
		protected $_name = 'participante';
		
		/* Instancia de la Tabla */
        protected static $_instance = null;
		
		/* Obtener la instancia de la tabla de manera estatica
		* @return Zend_Db_Table
		*/
        public static function getInstance()
        {
            if (null === self::$_instance) 
			{
                self::$_instance = new self();
            }
            return self::$_instance;
        }
		
		public static function getPersona($id)
		{
			$table = self::getInstance();
            $select = $table->select();
            $select->from($table);
			$select->where('id_user = ?', $id);
			return $table->fetchAll($select);
		}
		
		public static function getPersonas()
		{
			$table = self::getInstance();
            $select = $table->select();
            $select->from($table);
			return $table->fetchAll($select);
		}
	}